package com.lyh.seckill.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyh.seckill.pojo.User;
import com.lyh.seckill.vo.LoginVo;
import com.lyh.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhoubin
 * @since 1.0.0
 */
public interface IUserService extends IService<User> {
    /**
     * 登录
     * @param loginVo
     * @return
     */
//    RespBean login(LoginVo loginVo);
    //通过session找到用户信息
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);
    //根据redis存的cookie获取用户
    User getUserByCookie(String userTicket,HttpServletRequest request, HttpServletResponse response);
//    RespBean login(LoginVo loginVo);
}